package framework.base;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

import framework.annotation.SortColumn;


// 基础Entity，其他所有的Entity都将继承此Entity，每一个Entity对应数据库中的一张表
public abstract class BaseEntity implements Serializable
{
	/**
	 * @Fields serialVersionUID : 
	 */
	private static final long serialVersionUID = -8595624694845941035L;

	public static final String COMMENT_FIELD = "COMMENT";

	@SortColumn("insert_time")
	protected Date insertTime = Calendar.getInstance().getTime();

	@SortColumn("insert_by")
	protected String insertBy;

	@SortColumn("update_time")
	protected Date updateTime = Calendar.getInstance().getTime();

	@SortColumn("update_by")
	protected String updateBy;

	@SortColumn("delete_time")
	protected Date deleteTime = Calendar.getInstance().getTime();

	@SortColumn("delete_by")
	protected String deleteBy;

	protected String loginUserId; // 当前登录用户ID

	protected String whereClause; // where子查询语句，当查询条件过于复杂时，可以像MyBatis中传递查询sql作为

	protected String sort;

	protected String order;

	protected Boolean showBlank = false; // 为下拉列表时，是否显示空值

	protected String operate = "操作";
	
	public Date getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	public String getInsertBy() {
		return insertBy;
	}

	public void setInsertBy(String insertBy) {
		this.insertBy = insertBy;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(Date deleteTime) {
		this.deleteTime = deleteTime;
	}

	public String getDeleteBy() {
		return deleteBy;
	}

	public void setDeleteBy(String deleteBy) {
		this.deleteBy = deleteBy;
	}

	public String getLoginUserId() {
		return loginUserId;
	}

	public void setLoginUserId(String loginUserId) {
		this.loginUserId = loginUserId;
	}

	public String getWhereClause() {
		return whereClause;
	}

	public void setWhereClause(String whereClause) {
		this.whereClause = whereClause;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public Boolean getShowBlank() {
		return showBlank;
	}

	public void setShowBlank(Boolean showBlank) {
		this.showBlank = showBlank;
	}

	public String getOperate() {
		return operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

	 
}